package com.design.pattern.flyweight;

/**
 * 大汽车
 */
public class BigCarConcreteFlyWeight implements CarFlyWeight {
    String color;

    Integer wheels;

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getWheels() {
        return wheels;
    }

    public void setWheels(Integer wheels) {
        this.wheels = wheels;
    }

    @Override
    public void display(Coordinate coordinate) {
        System.out.println("大汽车:颜色="+getColor()+"车轮数量="+getWheels()+",坐标:"+coordinate.getX()+","+coordinate.getY()+","+coordinate.getZ());
    }
}
